@forelse($orders as $order)
<tr>
	<td class="item" data-id="{{$order->id}}">{{$loop->index + 1}}</td>
	<td>{{$order->order_id}}</td>
	<td>{{$order->contacts}}</td>
	<td>{{$order->phone}}</td>
	<td>{{$order->price}}元</td>
	<td>{{$order->created_at}}</td>
	<td>{{$order->type ? "已发送活动短信" : "尚未发送短信"}}</td><td><a href="{{ route('order.detail',['id'=>$order->id]) }}">查看详情</a></td>
</tr>
@empty
	<tr class="no_data_tr"><td colspan="8"><span class="more">当前暂无导入订单</span></td></tr>
@endforelse

<script type="text/javascript">
	Page({
		num:{{$pageNums}},				 	 //页码数
		startnum:{{$page}}, 			 //指定页码
		elem:$('#page1'),		 //指定的元素
		callback:function(n){	 //回调函数
			params['pageSize'] = $('.page_num').find('.active').text();
			params['page'] = n;
			getList(baseUrl,params);
			$('#_all').removeClass('active');
		}
	});


	$('#sendOrderNum').html("{{$nums['sendOrderNum']}}");
	$('#orderNum').html("{{$nums['orderNum']}}");
</script>
